import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Page5 from './views/nav2/Page5.vue'
import Page6 from './views/nav3/Page6.vue'
import echarts from './views/charts/echarts.vue'
import Department from './views/org/Department'
import Shop from './views/org/Shop'
import Employee from './views/org/Employee'
import DictionaryType from './views/system/DictionaryType'
import Menu from './views/system/Menu'
import Permission from './views/system/Permission'
import Role from './views/system/Role'
import ShopRegister from './views/ShopRegister'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {   //添加商家注册页面
        path: '/ShopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        iconCls: 'fa fa-bar-chart',
        //改变为一级路径 leaf属性
        leaf: true,
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;